package cn.myjerry.thread.schedule;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
/**
 * 任务调度
 * @author Jerry
 *
 */
public class TimerDemo01 {
	public static void main(String[] args) {
		Timer t = new Timer();
		t.scheduleAtFixedRate(new TimerTask() {
			@Override
			public void run() {
				System.out.println("so easy...");
			}
		}, new Date(System.currentTimeMillis() + 1000), 500);
	}
}
